package com.bobochang.warehouse.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.bobochang.warehouse.entity.ConstructionDetails;
import com.bobochang.warehouse.entity.ConstructionType;
import com.bobochang.warehouse.entity.Contract;
import com.bobochang.warehouse.entity.DailyConstruction;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Author LiY
 * 汇总表
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConstructionDetailsCollectDto {

    private List<ConstructionDetailsCollectDto> constructionDetailsCollectDtos;

    private int rank;

    /**
     * 该位置施工数量
     */
    private int numberByLocation;

    /**
     * 施工位置id
     */
    private Integer locationId;

    /**
     * 施工位置名称
     */
    private String locationName;

    /**
     * 施工类型id
     */
    private Integer typeId;

    /**
     * 施工类型名称
     */
    private String constructionType;

    /**
     * 施工数量
     */
    private BigDecimal number;

    /**
     * 计量名称
     */
    private String measurement;

    /**
     * 单位
     */
    private Integer unit;

    /**
     * 所用产品id（沥青砼）
     */
    private Integer productId;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 产品使用数量
     */
    private BigDecimal numberProduct;

    /**
     * 产品计量名称
     */
    private String measurementProduct;

    /**
     * 产品计量单位
     */
    private Integer unitProduct;

    /**
     * 备注
     */
    private String remark;

    /**
     * 合同
     */
    private Contract contract;

    /**
     * 合计
     */
    @TableField(exist = false)
    private BigDecimal collectLength = BigDecimal.valueOf(0);
    @TableField(exist = false)
    private  BigDecimal collectNumberGe = BigDecimal.valueOf(0);
    @TableField(exist = false)
    private BigDecimal collectNumberM2 = BigDecimal.valueOf(0);

    private BigDecimal collectNumberProduct = BigDecimal.valueOf(0);

    public ConstructionDetailsCollectDto(int i){
        this.rank = i;
    }

}
